package com.ruoyi.workbench.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excels;
import lombok.Getter;
import lombok.Setter;

/**
 * 包含所有单元的拜访日志
 *
 * @author hanjiafeng
 * @date 2021年2月25日 11点56分
 */
public class WbWholeVisitLog extends WbVisitLog {
    @Getter
    @Setter
    @Excels({
            @Excel(name = "三级单元", targetAttr = "unit3.deptName", type = Excel.Type.EXPORT),
            @Excel(name = "四级单元", targetAttr = "unit4.deptName", type = Excel.Type.EXPORT),
            @Excel(name = "包区ID", targetAttr = "unit5.deptId", type = Excel.Type.EXPORT),
            @Excel(name = "包区名称", targetAttr = "unit5.deptName", type = Excel.Type.EXPORT),
            @Excel(name = "网格名称", targetAttr = "unit6.deptName", type = Excel.Type.EXPORT),
            @Excel(name = "自然庄名称", targetAttr = "unit7.unitName", type = Excel.Type.EXPORT),
            @Excel(name = "承包人", targetAttr = "unit5.leader", type = Excel.Type.EXPORT),
    })
    private WbWholeUnit wholeUnit;

    public void setWbVisitLog(WbVisitLog wbVisitLog) {
        setId(wbVisitLog.getId());
        setUnitId7(wbVisitLog.getUnitId7());
        setUserName(wbVisitLog.getUserName());
        setCurrentPhoneNumber(wbVisitLog.getCurrentPhoneNumber());
        setMealValue(wbVisitLog.getMealValue());
        setExpiredTime(wbVisitLog.getExpiredTime());
        setTranslatedPhoneNumber(wbVisitLog.getTranslatedPhoneNumber());
        setScenePhoto(wbVisitLog.getScenePhoto());
        setRemake(wbVisitLog.getRemake());
        setDelFlag(wbVisitLog.getDelFlag());
        setSearchValue(wbVisitLog.getSearchValue());
        setCreateBy(wbVisitLog.getCreateBy());
        setCreateTime(wbVisitLog.getCreateTime());
        setUpdateBy(wbVisitLog.getUpdateBy());
        setUpdateTime(wbVisitLog.getUpdateTime());
        setRemark(wbVisitLog.getRemark());
        setParams(wbVisitLog.getParams());
        setCommunicationOperator(wbVisitLog.getCommunicationOperator());
        setHouseType(wbVisitLog.getHouseType());
        setTendency(wbVisitLog.getTendency());
    }
}
